package com.cal.utms.entity;


import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the deal_daily_interest database table.
 * 
 */
@Entity
@Table(name="deal_daily_interest")
@NamedQuery(name="DealDailyInterest.findAll", query="SELECT d FROM DealDailyInterest d")
public class DealDailyInterest implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;

	@Temporal(TemporalType.DATE)
	private Date date;

	@Column(name="INTEREST", precision=10, scale=4)
	private BigDecimal interest;
	
	@Column(name="MARKET_VALUE", precision=10, scale=4)
	private BigDecimal marketValue;

	//uni-directional many-to-one association to Deal
	@ManyToOne
	private Deal deal;

	public DealDailyInterest() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public BigDecimal getInterest() {
		return interest;
	}

	public void setInterest(BigDecimal interest) {
		this.interest = interest;
	}

	public Deal getDeal() {
		return this.deal;
	}

	public void setDeal(Deal deal) {
		this.deal = deal;
	}

	public BigDecimal getMarketValue() {
		return marketValue;
	}

	public void setMarketValue(BigDecimal marketValue) {
		this.marketValue = marketValue;
	}

}
